package com.github.haioa.system.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author HaiQiu
 * @since 2023/1/3
 */
@RestController
@RequestMapping("test")
public class TestController {

    @Value("app.name:test")
    private String name;

    @GetMapping
    public ResponseEntity<Object> test(){
        return ResponseEntity.ok(name);
    }
}
